#include <QtGui>
#include "styledialog.h"

StyleDialog::StyleDialog()
{
setupUi(this);
styleComboBox->addItem( QLatin1String("NorwegianWood") );
styleComboBox->addItems(QStyleFactory::keys());
}

StyleDialog::~StyleDialog()
{
}

void StyleDialog::set_style(const QString & s)
{
selected_style = s; 
}

void StyleDialog::set_palette(bool p)
{
standard_palette = p;
}

QMap<QString, QString> StyleDialog::return_selected()
{
QMap<QString, QString> m;
m["style"] = styleComboBox->currentText();
    if ( true == paletteCheckBox->isChecked() )
    {
    m["standard"] = QLatin1String("TRUE");
    }
    else
    {
    m["standard"] = QLatin1String("FALSE");
    }
return m; 
}
